package com.doit.day04

/**
 * 在scala里面有一个数据类型==》 元祖   Tuple
 */
object _02_元祖 {
  def main(args: Array[String]): Unit = {

    val tuple: (String, Int) = new Tuple2[String, Int]("a", 3)
    println(tuple)

    val tuple1: (Int, String, Char, Boolean, Double) = (1, "zss", 'a', true, 10.9)
    println(tuple1._2)

    val tuple2: (Int, String, Int, String) = (1, "zss", 18, "male")

    (1,(1,"2"),(1,"2",1.0),"male",ScalaOrder("1","1","1","1",2,1))
    //(1,"2") 对偶元祖  map (key,value)  map里面的元素 ._1  ._2




  }
}
